package models

import (
	"gorm.io/gorm"
	"time"
)

type Register struct {
	gorm.Model
	Hospital    string    `gorm:"type:varchar(20)"json:"hospital"`    //医院
	Address     string    `gorm:"type:varchar(50)"json:"address"`     //地址
	Depart      string    `gorm:"type:varchar(20)"json:"depart"`      //诊室
	Doctor      string    `gorm:"type:varchar(10)"json:"doctor"`      //医师
	Title       string    `gorm:"type:varchar(20)"json:"title"`       //医师职称
	Type        string    `gorm:"type:varchar(20)"json:"type"`        //挂号类型
	TreatTime   time.Time `json:"treatTime"`                          //门诊时间
	WaitingTime time.Time `json:"waitingTime"`                        //候诊时间
	Price       float64   `gorm:"type:float(10,2)"json:"price"`       //挂号费
	MedicalType string    `gorm:"type:varchar(10)"json:"medicalType"` //就诊状态
	Reason      string    `gorm:"type:varchar(50)"json:"reason"`      //取消原因
	Intro       string    `gorm:"type:varchar(255)"json:"intro"`      //备注
}
